	<?php $form = $this->beginWidget('lib.widgets.CActiveFormAdv')?>
	<?php echo $form->hiddenField($model,'items.related_id')?>
    <?php echo $form->hiddenField($model,'items.goods_id')?>
    <?php echo $form->hiddenField($model,'items.provider_id')?>
    <?php echo $form->hiddenField($model,'items.dealer_id')?>
    <?php echo $form->hiddenField($model,'items.item_price',array('id'=>'price'))?>
	<div class="bh-ly-jj-hotelorder bh-fl bh-inline bh-padB30">
			<h3 class="bh-ly-yw-shang">填写订单</h3>
        	<table width="100%" border="0" cellspacing="0" class="bh-Border_2" cellpadding="0">
			  <tr height="20">
				<td></td>
			  </tr>
              <!-- <tr>
              	<th class="bh-textRt">客房信息：</th>
              </tr>  -->
              <tr height="40">
                <td class="bh-textRt">房型类型：</td>
                <td><?php echo CHtml::value($model, 'items.goods.profile.room_type')?></td>
              </tr>
              <tr height="40">
                <td class="bh-textRt">房间数量<span class="bh-bodyred">*</span>：</td>
                <td> 
	                <?php echo $form->dropDownList($model, 'items.item_num', Yii::app()->enum->options('num',false),array('id' => 'item-num'))?> 间
					<?php echo $form->error($model, 'items.item_num');?>
				</td>
              </tr>
              <tr height="40">
                <td class="bh-textRt">入住时间<span class="bh-bodyred">*</span>：</td>
                <td class="">
                	<?php $this->widget('lib.widgets.my97date.CMy97DatePicker', array(
			 			'model' => $model,
			 			'attribute' => 'addon.arrive_time',
                		'htmlOptions' => array(
                			'class' => 'bh-ly-jj-lvyouOrder_text'
                		)
					));?>
					到
					<?php $this->widget('lib.widgets.my97date.CMy97DatePicker', array(
			 			'model' => $model,
			 			'attribute' => 'addon.leave_time',
                		'htmlOptions' => array(
                			'class' => 'bh-ly-jj-lvyouOrder_text'
                		)
					));?>
					<?php echo $form->error($model, 'addon.arrive_time')?>
					<?php echo $form->error($model, 'addon.leave_time')?>
                </td>
              </tr>
              <tr height="40">
                <td class="bh-textRt">房费：</td>
                <td class="bh-strong bh-bodyred bh-font24">¥<label id='money'><?php echo CHtml::value($model, 'items.item_price')?></label></td>
             </tr>
              <tr height="35" class="bh-ly-jj-borderB1">
                <td></td>
                <td></td>
              </tr>
			  <tr height="20">
				<td></td>
			  </tr>
			 <!--  <tr>
              	<th class="bh-textRt">入住信息：</th>
              </tr>  -->
              <tr height="40" id='copy'  style='display:none'>
					<td class="bh-textRt bh-padT5" >第{num}入住人姓名<span class="bh-bodyred">*</span>：</td>
					<td width="585" class="">
						<span class="">
						<?php echo $form->textField($model,'travelers..name',array(
								'class'=>'border_tonyi bh-ly-jj-orderspn',
							))?>
						<?php echo $form->error($model, 'travelers..name')?>
						</span>
					</td>
				</tr>
              <tr height="40" id='copy-content'>
                <td class="bh-textRt bh-padT5">第1入住人姓名<span class="bh-bodyred">*</span>：</td>
                <td width="585" class="">
					<span class="">
						<?php echo $form->textField($model,'travelers..name',array(
						'class'=>'border_tonyi bh-ly-jj-orderspn',
						))?>
						<?php echo $form->error($model, 'travelers..name')?>
					</span>
                </td>
              </tr>
              <tr height="40">
                <td class="bh-textRt">订单联系人<span class="bh-bodyred">*</span>：</td>
                <td class="">
					<?php echo $form->textField($model,'receiverInfo.receiver',array(
						'class'=>'bh-ly-jj-lvyouOrder_text border_tonyi',
					))?>
					<?php echo $form->error($model, 'receiverInfo.receiver')?>
                </td>
              </tr>
              <tr height="40">
                <td class="bh-textRt">订单联系人手机<span class="bh-bodyred">*</span>：</td>
                <td class="">
                	<?php echo $form->textField($model,'receiverInfo.mobile',array(
						'class'=>'bh-ly-jj-lvyouOrder_text border_tonyi',
					))?>
					<?php echo $form->error($model, 'receiverInfo.mobile')?>
                </td>
              </tr>
              <tr height="50">
                <td></td>
                <td colspan="2">
                	<?php echo CHtml::submitButton('提交订单',array(
						'class'=>'bh-lr-btn',
					));?>
                </td>
              </tr>
              
              <!-- <tr height="35">
                <td></td>
                <td>&nbsp;<span class="bh-bodyred">*</span><?php echo CHtml::checkBox('agree',true);?> 我已阅读下述购买须知，并接受其所有内容</td>
              </tr>
              <tr>
                <td></td>
                <td>
                    <textarea class="bh-ly-jj-lyOrder_tiaokuan  bh-mlt16 border_tonyi">1、本投保人兹申明以上述各项内容填写属实。 
         			   本投保人已认真阅读并正确理解《平安旅行意外伤害保险条款》各项内容，尤其是有关免除责任的条款。本投保人已经完全获知并认同保险条款、免责、理赔须知等具体内容，并同意接受条款全部内容。
            
             		2、根据《中华人民共和国合同法》第十一条规定，数据电文是合法的合同表现形式。本人接受以平安养老保险股份有限公司提供的电子保单作为本投保书成立的合法有效凭证，具有完全证据效力。
            
             		3、本人同意提供给平安集团（指中国平安保险（集团）股份有限公司及其直接或间接控股的公司）的信息
            		</textarea>    
                </td>
              </tr>
			  <tr height="25">
                <td></td>
                <td></td>
              </tr> -->
            </table>
             <div class="bh-space"></div>
        </div>
        <?php $this->endWidget()?>
